<?php

namespace App\Http\Controllers\System;


use App\Criteria\System\SystemCode\SystemCodeBaseQueryCriteria;
use App\Http\Controllers\Controller;
use App\Http\Controllers\CurlRecordMethod;
use App\Http\Requests\System\SystemCodeRequest;
use App\Repositories\System\SystemCodeRepository;
use App\Validators\System\SystemCodeValidator;


class SystemCodesController extends Controller
{

    use CurlRecordMethod;

    protected $index_page='system.systemCode.systemCodeMain';
    protected $add_page='system.systemCode.systemCodeAdd';
    protected $edit_page='system.systemCode.systemCodeEdit';

    protected $repository;
    protected $validator;
    protected $request;

    public function __construct(SystemCodeRepository $repository, SystemCodeValidator $validator,SystemCodeRequest $request){
        $this->repository = $repository;
        $this->validator  = $validator;
        $this->request    = $request;
    }
    public function getBaseQueryCriteria(){
        return new SystemCodeBaseQueryCriteria;
    }

}
